home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / PLOYSTAR.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  55 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   POLYSTAR.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  18. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  19.                                                '┌────────────────────────────
  20. $INCLUDE "DAS-NB03.INC"                        '│ math lib
  21. $INCLUDE "DAS-NBV1.INC"                        '│ graphics lib
  22. $INCLUDE "PUBLICS .INC"                        '│ public variables pPi#
  23.                                                '│
  24. SCREEN 12                                      '│
  25. GraphicSETUP                                   '│
  26. CLS                                            '│
  27.                                                '│
  28. DIM tIn  AS PolygonTYPE                        '│ inner circle
  29. DIM tOut AS PolygonTYPE                        '│ outter circe
  30.                                                '│
  31. tin.X        = 320                             '│
  32. tIn.Y        = 240                             '│
  33. tIn.Radius   =  57                             '│
  34. tIn.Aspect   =   1                             '│
  35. tIn.StartDeg =  36                             '│ side at the top
  36. tIn.Points   =   5                             '│
  37. tIn.Pmode    =   2                             '│
  38. tIn.Colour   =  14                             '│
  39.                                                '│
  40. tOut.X        = 320                            '│
  41. tOut.Y        = 240                            '│
  42. tOut.Radius   = 150                            '│
  43. tOut.Aspect   =   1                            '│
  44. tOut.StartDeg =   0                            '│ point at the top
  45. tOut.Points   =   5                            '│
  46. tOut.Pmode    =   2                            '│
  47. tOut.Colour   =  14                            '│
  48.                                                '│
  49. DrawSTAR tIn, tOut                             '│ draw the star
  50. DELAY 2                                        '│
  51. tIn.Pmode  = 3                                 '│ change put-mode
  52. Draw2Dpolygon tIn                              '│ draw pentagons
  53. CIRCLE ( tOut.X, tOut.Y ), tOut.Radius, 15     '│ use data for circles too
  54.                                                '└───────────────────────────
  55.